<?php
$this->breadcrumbs=array(
	'Halaman Saya',
);?>
<h1><!--?php echo $this->id . '/' . $this->action->id; ?--></h1>

<p>
<?php if(!Yii::app()->user->isGuest):?>
<h3>Selamat datang, <?php echo Yii::app()->user->name; ?>. </h3>
<p>
   Anda terakhir login pada <?php echo date( 'l, F d, Y, g:i a', Yii::app()->user->lastLogin ); ?>. 
   ID anda: <?php echo Yii::app()->user->id; ?>. Username : <?php echo Yii::app()->user->name; ?>.
</p>

<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <th width="57%" id="border5" scope="col">::PROFIL::</th>
    <th width="6%" scope="col" >&nbsp;</th>
    <th width="37%" id="border5" scope="col">::MENU::</th>
  </tr>
  <tr>
    <th rowspan="2" id="border4" scope="col"><table width="679" border="1" id="border">
      <tr >
        <?php foreach($PenyediaTravels as $penyedia){?>
        <td width="669" ><h3 ><?php echo $penyedia['NAMA_TRAVEL']?></h3></td>
        <br />
        <?php }?>
        </tr>
      <tr>
        <?php foreach($PenyediaTravels as $penyedia){?>
        <td align="center" style="text-align:justify"><?php echo $penyedia['DESKRIPSI_TRAVEL']?></td>
        <?php }?>
        </tr>
      <tr>
        <td><?php echo 'Email: ' . $penyedia['EMAIL']?></td>
        </tr>
      <tr>
        <td><?php echo 'Telepon: ' . $penyedia['TELEPON_TRAVEL']?><br />
          <br /></td>
        </tr>
      <tr>
        <td><h4>Layanan</h4>
          <table width="660" border="1">
            <?php foreach($Layanans as $layanan){?>
            <tr>
              <td width="650"><?php echo '- ' . $layanan['NAMA_LAYANAN'] . ', ' .$layanan['DESKRIPSI_LAYANAN']?></td>
              </tr>
            <?php }?>
          </table></td>
        </tr>
      <tr>
        <td><h4>Fasiitas</h4>
          <table width="661" border="1">
            <?php foreach($Fasilitass as $fasilitas){?>
            <tr>
              <td width="651"><?php echo '- ' . $fasilitas['NAMA_FASILITAS'] ;?></td>
              </tr>
            <?php }?>
          </table></td>
        </tr>
    </table></th>
    <td height="45" scope="col" >&nbsp;</td>
    <td scope="col" id="border4" valign="top"><table width="522" border="1">
      <tr>
        <td height="25" valign="top"><?php echo CHtml::link("Data Perjalanan",array('detailPerjalananTravel/'));?></td>
      </tr>
      <tr>
        <td height="26" valign="top"><?php echo CHtml::link("Data Promosi",array('promosi/'));?></td>
      </tr>
      <tr>
        <td height="25" valign="top"><?php echo CHtml::link("Data Pemesanan",array('reservator/'));?></td>
      </tr>
      <tr>
        <td height="27"><?php echo CHtml::link("Edit Profil",array('penyediaTravel/update/'.Yii::app()->user->id));?></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
  </tr>
</table>

<?php endif;?>
</p>
